﻿/*CREATE TRIGGER [dbo].[JuntasImportesTipos_DeletionTrigger] 
    ON [JuntasImportesTipos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[JuntasImportesTipos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[TipoGuid] = [JuntasImportesTipos_Tombstone].[TipoGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[JuntasImportesTipos_Tombstone] 
    ([TipoGuid], DeletionDate)
    SELECT [TipoGuid], GETUTCDATE()
    FROM deleted 
END*/